#pragma once

#include "OnDemandServerMediaSubsession.hh"

class CameraJPEGServerMediaSubsession : public OnDemandServerMediaSubsession
{
public:
	CameraJPEGServerMediaSubsession(UsageEnvironment& env, Boolean reuseFirstSource);
public:
	~CameraJPEGServerMediaSubsession(void);

	//static CameraJPEGServerMediaSubsession* createNew(UsageEnvironment& env, Boolean reuseFirstSource);
	FramedSource* createNewStreamSource(unsigned /*clientSessionId*/, unsigned& estBitrate);
	RTPSink* createNewRTPSink(Groupsock* rtpGroupsock,
		   unsigned char rtpPayloadTypeIfDynamic,
		   FramedSource* /*inputSource*/);
};
